<template>
  <div class="default-box">
    <div class="box-title" v-if="title">
      <div class="vertical-line vertical-line-black" />
      <span class="title-span">{{ title }}</span>
    </div>
    <div>
      <div class="content">
        <Table :dataSource="list" :columns="columns" />
      </div>
    </div>
  </div>
</template>

<script lang="ts" setup>
import { Table } from 'ant-design-vue'
withDefaults(defineProps<{ title?: string, list?: any[], columns: any[] }>(), {
  title: '',
  list: () => [],
  columns: () => []
})


</script>

<style lang="less" scoped>
@import "./index.less";
</style>
